<template>
  <div>
    <!-- 顶部导航栏 -->
    <div class="top">
      <van-icon
        @click="wode()"
        class="arrowLeft"
        style="top: 10px"
        name="arrow-left"
        color="pink"
        size="30"
      />
      <div class="searchbox">
        <div class="box">
          <img
            class="fangdajing"
            src="https://image.hongbeibang.com/FltPAS-35CZfvSpnHacXWoqcfFz5?42X42&imageView2/1/w/42/h/42"
            alt=""
          />
          <div style="width:10px"></div>
          <span>搜索</span>
        </div>
      </div>
    </div>

    <!-- 关注/粉丝 -->
    <van-tabs v-model="active">
      <van-tab title="关注"></van-tab>
      <van-tab title="粉丝"></van-tab>
    </van-tabs>
  </div>
</template>

<script>
export default {
  data() {
    return {
      active: 1,
    };
  },
  methods: {
    wode() {
      this.$router.push({
        path: "/wode",
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.top {
  width: 339px;
  display: flex;
  padding: 0 18px;
  .searchbox {
    width: 229px;
    height: 35px;
    padding: 0 10px;
    margin: 4.5px 30px 4.5px 20px;
    border-radius: 4px;
    background-color: #f5f7f9;
    .box {
      display: flex;
      line-height: 35px;
      justify-content: center;
      .fangdajing {
        margin-top: 9px;
        height: 18px;
        width: 18px;
      }
      span {
        font-size: 12px;
        color: #999;
      }
    }
  }
}

</style>